//
//  MeAutStatusViewController.m
//  DBAChain
//
//  Created by Mxionlly on 2018/9/10.
//  Copyright © 2018年 Evan. All rights reserved.
//

#import "MeAutStatusViewController.h"
#import "MeAuthenticationViewController.h"

@interface MeAutStatusViewController ()
@property (nonatomic,assign)NSInteger type;
@property (weak, nonatomic) IBOutlet UILabel *lbtitle;
@property (weak, nonatomic) IBOutlet UILabel *lbcontent;
@property (weak, nonatomic) IBOutlet UIButton *button;
@property (weak, nonatomic) IBOutlet UIButton *button1;
@end

@implementation MeAutStatusViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title = @"实名认证";
    if (self.type == 1) {
        self.lbtitle.text =@"认证未通过";
        self.lbcontent.text =@"请务必保持身份信息真实有效 \n身份证图像清晰";
        self.button1.hidden = NO;
        [self.button1 addTarget:self action:@selector(backAction1) forControlEvents:UIControlEventTouchUpInside];
        [self.button setTitle:@"重新认证" forState:UIControlStateNormal];
    }
}

- (id)initWithType:(NSInteger )type {
    self = [super init];
    if (self) {
        self.type = type;
    }
    return self;
}
-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [self setBlackStatus:YES];
}

- (IBAction)backAction:(id)sender {
    if (self.type == 0) {
        [self.navigationController popToRootViewControllerAnimated:YES];
    }else{
        [self.navigationController pushViewController:[MeAuthenticationViewController new] animated:YES];
    }
}

-(void)backAction1
{
    [self.navigationController popToRootViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
